Servebolt\Optimizer\FullPageCache\FullPageCacheHeaders C

Total Complexity 102
Dependencies 3
Dependents 3
Total lines 556
Lines of code 272
Logical lines of code 167
Comment lines 193
Methods 25
Properties 7

Methods 25

Method Rating Maintainability Complexity Lines of code
setHeaders()
D
35 34 76
getPostTypesToCache()
S
61 6 11
isAuthenticatedUser()
S
55 5 20
header()
S
57 5 18
maybeFixPostTypeArrayStructure()
S
57 5 17
cacheHeaders()
S
55 4 19
shouldSetCacheHeaders()
S
70 5 6
isWoocommerceCachePage()
S
76 5 3
shouldCacheArchive()
S
62 4 11
isWoocommerceNoCachePage()
S
77 4 3
getDefaultPostTypesToCache()
S
62 3 12
getAvailablePostTypesToCache()
S
62 3 11
cacheActiveForPostType()
S
66 3 9
mock()
S
66 2 9
__construct()
S
68 2 7
printHeader()
S
69 2 7
noCacheHeaders()
S
67 2 8
setCacheablePostTypes()
S
78 1 3
init()
S
80 1 3
fpcCacheablePostTypesOptionKey()
S
81 1 3
cacheAllPostTypes()
S
80 1 3
getMockHeaders()
S
80 1 3
shouldDebug()
S
79 1 3
setHeaderAlreadySetState()
S
81 1 3
lastCall()
S
76 1 4